#include "Room.h"
#include "Geometry.h"
#include "LuaScript.h"

Room::Room(float width, float height, float length)
{
	vec3 corner(width / 2, height / 2, length / 2);
	this->SetCorners(corner, -corner);

	DrawFloorSmooth(this->GetBotRight(), this->GetTopLeft(), 500, &vbo);
	DrawWallsSmooth(this->GetBotRight(), this->GetTopLeft(), 500, &vbo);
}

void Room::Draw(void)
{
	glEnable(GL_CULL_FACE);
	vbo.Draw();
}